package org.example.service.Impl;


import org.example.bean.Ptype;
import org.example.mapper.PtypeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PtypeServise {
    @Autowired
    PtypeDao ptypeDao;
    public List<Ptype> getAll(){
        return ptypeDao.list();
    }
    public void del(int id){
        ptypeDao.del(id);
    };
    public void add(Ptype ptype){ptypeDao.add(ptype);}
    public void update(Ptype ptype){ptypeDao.update(ptype);}
}
